package com.azier.kapacitor.script.method;

import com.azier.kapacitor.script.arg.OriginalArg;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public class Period extends AbstractMethod {
    private static final String name = "period";
    /**
    The period or length of time that will be queried from InfluxDB
    **/
    /**
    从InfluxDB查询的时间段或时间长度
    **/
    public Period(long interval, String durationLiteral) {
        super(new ArrayList<>(), name);
        //
        this.args.add(new OriginalArg(interval + durationLiteral));

    }
}
